/**
 * @UiMenubar.hpp
 * Copyright 2013 (C) FatalEror / Dean Bahari
 * 
 * UiPack is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * See LICENSE file in main folder for more information.
 */

#ifndef _UI_MENUBAR_HPP_
#define _UI_MENUBAR_HPP_

class UiWindow;

class UiMenubarItem : public UiButton {
public:
	UiMenubarItem(const wchar_t *name, const wchar_t *imageDir, void *callback = NULL, void *papram = NULL);

private:
	virtual void onPaint(UiEvent &ev);
};

class UiMenubar : public UiBase {
public:
	UiMenubar();
	UiMenubar(UiWindow *window);

	void addItem(UiMenubarItem *item);

	enum State {
		UI_MENUBAR_ITEM_DISABLE = 1,
		UI_MENUBAR_ITEM_HOVER,
		UI_MENUBAR_ITEM_CLICK,
	};
private:
	virtual LRESULT CALLBACK handleCustomProc(UINT msg, WPARAM wParam, LPARAM lParam);
};

#endif//_UI_MENUBAR_HPP_